public class Buch implements Comparable<Buch>{

	private String isbn;
	private String title;
	private String autor;
	
	public Buch(String isbn, String autor, String title){
		this.isbn=isbn;
		this.autor=autor;
		this.title=title;
	}
	
	public Buch(String isbn){
		this.isbn=isbn;
	}
	
	public String getAutor(){
		return autor;
	}
	
	public String getIsbn(){
		return isbn;
	}
	
	public String toString(){
		return "ISBN: "+isbn+", Autor: "+autor+", Titel: "+title+".";
	}

	public int compareTo(Buch b){
		return isbn.compareTo(b.getIsbn());
	}
	
}
